package com.app.tool.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName EMS_SUBSTATION
 */
@TableName(value ="EMS_SUBSTATION")
public class EmsSubstation implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 
     */
    private String code;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private Long bvId;

    /**
     * 
     */
    private Long subareaId;

    /**
     * 
     */
    private Integer stType;

    /**
     * 
     */
    private Long stNo;

    /**
     * 
     */
    private Integer status;

    /**
     * 
     */
    private BigDecimal pgen;

    /**
     * 
     */
    private BigDecimal qgen;

    /**
     * 
     */
    private BigDecimal cap;

    /**
     * 
     */
    private String rdfId;

    /**
     * 
     */
    private BigDecimal longitude;

    /**
     * 
     */
    private BigDecimal dimension;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getCode() {
        return code;
    }

    /**
     * 
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 
     */
    public String getName() {
        return name;
    }

    /**
     * 
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 
     */
    public Long getBvId() {
        return bvId;
    }

    /**
     * 
     */
    public void setBvId(Long bvId) {
        this.bvId = bvId;
    }

    /**
     * 
     */
    public Long getSubareaId() {
        return subareaId;
    }

    /**
     * 
     */
    public void setSubareaId(Long subareaId) {
        this.subareaId = subareaId;
    }

    /**
     * 
     */
    public Integer getStType() {
        return stType;
    }

    /**
     * 
     */
    public void setStType(Integer stType) {
        this.stType = stType;
    }

    /**
     * 
     */
    public Long getStNo() {
        return stNo;
    }

    /**
     * 
     */
    public void setStNo(Long stNo) {
        this.stNo = stNo;
    }

    /**
     * 
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 
     */
    public BigDecimal getPgen() {
        return pgen;
    }

    /**
     * 
     */
    public void setPgen(BigDecimal pgen) {
        this.pgen = pgen;
    }

    /**
     * 
     */
    public BigDecimal getQgen() {
        return qgen;
    }

    /**
     * 
     */
    public void setQgen(BigDecimal qgen) {
        this.qgen = qgen;
    }

    /**
     * 
     */
    public BigDecimal getCap() {
        return cap;
    }

    /**
     * 
     */
    public void setCap(BigDecimal cap) {
        this.cap = cap;
    }

    /**
     * 
     */
    public String getRdfId() {
        return rdfId;
    }

    /**
     * 
     */
    public void setRdfId(String rdfId) {
        this.rdfId = rdfId;
    }

    /**
     * 
     */
    public BigDecimal getLongitude() {
        return longitude;
    }

    /**
     * 
     */
    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    /**
     * 
     */
    public BigDecimal getDimension() {
        return dimension;
    }

    /**
     * 
     */
    public void setDimension(BigDecimal dimension) {
        this.dimension = dimension;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EmsSubstation other = (EmsSubstation) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getBvId() == null ? other.getBvId() == null : this.getBvId().equals(other.getBvId()))
            && (this.getSubareaId() == null ? other.getSubareaId() == null : this.getSubareaId().equals(other.getSubareaId()))
            && (this.getStType() == null ? other.getStType() == null : this.getStType().equals(other.getStType()))
            && (this.getStNo() == null ? other.getStNo() == null : this.getStNo().equals(other.getStNo()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getPgen() == null ? other.getPgen() == null : this.getPgen().equals(other.getPgen()))
            && (this.getQgen() == null ? other.getQgen() == null : this.getQgen().equals(other.getQgen()))
            && (this.getCap() == null ? other.getCap() == null : this.getCap().equals(other.getCap()))
            && (this.getRdfId() == null ? other.getRdfId() == null : this.getRdfId().equals(other.getRdfId()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getDimension() == null ? other.getDimension() == null : this.getDimension().equals(other.getDimension()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getBvId() == null) ? 0 : getBvId().hashCode());
        result = prime * result + ((getSubareaId() == null) ? 0 : getSubareaId().hashCode());
        result = prime * result + ((getStType() == null) ? 0 : getStType().hashCode());
        result = prime * result + ((getStNo() == null) ? 0 : getStNo().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getPgen() == null) ? 0 : getPgen().hashCode());
        result = prime * result + ((getQgen() == null) ? 0 : getQgen().hashCode());
        result = prime * result + ((getCap() == null) ? 0 : getCap().hashCode());
        result = prime * result + ((getRdfId() == null) ? 0 : getRdfId().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getDimension() == null) ? 0 : getDimension().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", bvId=").append(bvId);
        sb.append(", subareaId=").append(subareaId);
        sb.append(", stType=").append(stType);
        sb.append(", stNo=").append(stNo);
        sb.append(", status=").append(status);
        sb.append(", pgen=").append(pgen);
        sb.append(", qgen=").append(qgen);
        sb.append(", cap=").append(cap);
        sb.append(", rdfId=").append(rdfId);
        sb.append(", longitude=").append(longitude);
        sb.append(", dimension=").append(dimension);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}